{* Smarty *}
{*debug*}
<div>{$catalog_hs}</div>
<br />
<div class="title">{$title}</div><br/>
<form method="POST" action="{$url}" enctype="multipart/form-data" >
<input name="catalog_id" value="{$id}" type="hidden"/>
<input name="parent_id" value="{$item.parent_id}" type="hidden"/>
<input name="action" value="{$action}" type="hidden"/>
<table>
{if isne($item.catalog_id) }<tr class="light"><td>Catalog Id</td><td>{$item.catalog_id}</td></tr>{/if}
	{if isne($item.parent_id) }<tr class="dark"><td>Parent Id</td><td>{$parent_string}</td></tr>{/if}
	<tr class="light">
		<td>Title</td>
		<td><input name="title" value="{$item.title}" class="input_text" type="text"/></td>
	</tr>

    <tr class="dark">

        <td valign="top">HTML title:</td>

        <td><input type="text" name="h_title" value="{$item.h_title}" class="input_text" style="width:200px;" /></td>

    </tr>

    <tr class="dark">
        <td valign="top">Default Vendor:</td>
	<td><select name="owned_by_vendor" class="input_text">
	<option value="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No vendor</option>
	{foreach from=$vendors item=v}
	<option value="{$v.vendor_id}" {if $item.owned_by_vendor eq $v.vendor_id} selected {/if}>{$v.vendor_name}</option>
	{/foreach}
	</select>
	</td>
    </tr>
<!--
    <tr class="dark">
        <td valign="top">Default Vendors ID:</td>
        <td><input type="text" name="vendor_catalog_key" value="{$item.vendor_catalog_key}" class="input_text" style="width:200px;" /></td>
    </tr>
-->
	<tr class="light">
		<td>Default items sort :</td>
		<td><select name="sort" class="input_text">

		<option value='sibling asc'     {if $sort == 'sibling asc'}     selected {/if}>default</option>
		<option value='our_price asc'   {if $sort == 'our_price asc'}   selected {/if}>low our pricefirst</option>
		<option value='our_price desc'  {if $sort == 'our_price desc'}  selected {/if}>top our pricefirst</option>
		<option value='title asc'       {if $sort == 'title asc'}       selected {/if}>Title A=>Z</option>
		<option value='catalog_id desc' {if $sort == 'catalog_id desc'} selected {/if}>date(Last added item goes first)</option>

		</select>

		</td>
	</tr>

<!--
	<tr class="dark">
		<td>Itemnumber</td>
		<td><input name="item_number" value="{$item.item_number}" class="input_text" type="text"/></td>
	</tr>	
-->
<!--
	<tr class="light">
		<td>Retail price</td>
		<td><input name="list_price" value="{$item.list_price}" class="input_text" type="text"/></td>
	</tr>
-->
<!--
	<tr class="dark">
		<td>OurPrice</td>
		<td><input name="our_price" value="{$item.our_price}" class="input_text" type="text"/></td>
	</tr>
-->
<!--
	<tr class="light" valign="top">
		<td>Short Description</td>
		<td>
		{$stexteditor}
		<textarea name="shortdesc" wrap="virtual" class="input_text" style="height:60px;">{$item.shortdesc}</textarea>
		</td>
	</tr>
-->
<!--
	<tr class="dark">
		<td valign="top">Description</td>
		<td>
		{$ftexteditor}
		<textarea name="description" wrap="virtual" class="input_text" style="height:60px;">{$item.description}</textarea> 
		</td>
	</tr>
-->	
	<tr class="light" valign="top">
		<td>Catalog Image (small)</td>
		<td>
		<input type="file" name="img_small" value="{$item.img_small}" class="input_text"/><br/>
		{if isne($item.img_small) }<img src="/inventory/{$item.img_small}" border="0"/>{else}No Image{/if}
		</td>
	</tr>
	<tr class="dark">
		<td>Should it be in <br>the menu?</td>
		<td><input name="display_in_menu" {if $item.display_in_menu eq 'Y'}checked{/if} type="checkbox"/>
		</td>
	</tr>
	<tr class="light">
		<td>Is Active</td>
		<td><input name="is_active" {if $item.is_active eq 'Y'}checked{/if} type="checkbox"/>
		</td>
	</tr>
<!--
	<tr class="dark">
		<td>Sibling</td>
		<td><input name="sibling" value="{$item.sibling}" class="input_text" type="text"/></td>
	</tr>
-->
	<tr class="light">
		<td>Rows of items per page</td>
		<td><input name="ctlg_rows" value="{if $item.ctlg_rows > 0}{$item.ctlg_rows}{else}3{/if}" class="input_text" type="text"/></td>
	</tr>
	<tr>
		<td colspan="2" align="center">
		<input type="submit" value=" Submit " class="button" />
	&nbsp;<input type="button" name="cancel" value="Cancel" class="button" onclick="location = '{$cancel_url}';">
		</td>
	</tr>
	
</table>
</form>
